package com.mall.model.entity.Mms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 优惠卷记录表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "优惠卷记录表",description = "")
@TableName("mms_coupon_issued")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MmsCouponIssued implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 优惠卷id */
    @Schema(name = "优惠卷id",description = "")
    private Long couponId;
    /** 用户id */
    @Schema(name = "用户id",description = "")
    private Long userId;
    /** 优惠卷状态;0: 未使用 1:已使用 2:已过期 */
    @Schema(name = "优惠卷状态",description = "0: 未使用 1:已使用 2:已过期")
    private Integer status;
    /** 使用时间 */
    @Schema(name = "使用时间",description = "")
    private Date useTime;
    /** 关联订单 */
    @Schema(name = "关联订单",description = "")
    private Long orderId;
}